package com.tro.generator.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.tro.generator.entity.GenTable;
import com.tro.generator.entity.GenTableColVO;
import com.tro.generator.entity.GenTableExample;

public interface GenTableMapper {
	int countByExample(GenTableExample example);

	int deleteByExample(GenTableExample example);

	int deleteByPrimaryKey(String id);

	int insert(GenTable record);

	int insertSelective(GenTable record);

	List<GenTable> selectByExample(GenTableExample example);

	GenTable selectByPrimaryKey(String id);

	int updateByExampleSelective(@Param("record") GenTable record, @Param("example") GenTableExample example);

	int updateByExample(@Param("record") GenTable record, @Param("example") GenTableExample example);

	int updateByPrimaryKeySelective(GenTable record);

	int updateByPrimaryKey(GenTable record);

	void refTablesGenTable();

	void refTablesGenTableCol();

	void updateTablesGenTable();

	void insertSql(String sql);

	List<Map<String, Object>> querySql(String sql);

	void delSql(String sql);

	void updateSql(String sql);

	Integer countSql(String sql);

	List<GenTableColVO> getCols(String tableId);

}